package com.example.foobar.dao.service;

import com.example.foobar.dto.DABaseDTO;
import com.example.foobar.entity.ImsGhostCustomActiveRecord;
import io.geekidea.springbootplus.framework.common.service.BaseService;

import java.util.List;
import java.util.Map;

/**
 *  服务类
 *
 * @author 郑英奔
 * @since 2021-07-12
 */
public interface ImsGhostCustomActiveRecordDaoService extends BaseService<ImsGhostCustomActiveRecord> {

    /**
     * 保存
     *
     * @param imsGhostCustomActiveRecord
     * @return
     * @throws Exception
     */
    boolean saveImsGhostCustomActiveRecord(ImsGhostCustomActiveRecord imsGhostCustomActiveRecord);

    /**
     * 修改
     *
     * @param imsGhostCustomActiveRecord
     * @return
     * @throws Exception
     */
    boolean updateImsGhostCustomActiveRecord(ImsGhostCustomActiveRecord imsGhostCustomActiveRecord);

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteImsGhostCustomActiveRecord(Long id);

    List<DABaseDTO> getActiveDataByOfficialAccountIdAndDataRange(Map<String, Object> params);

    List<DABaseDTO> getSubscribeCount(Map<String, Object> params);

    List<ImsGhostCustomActiveRecord> listByDate(Map<String, Object> params);

    List<DABaseDTO> getActiveDataByOfficialSceneIdAndDataRange(Map<String, Object> params);

    int getSubscribeCountBySceneId(Map<String, Object> params);
}
